<?php

require_once 'Core/Db/Table/Abstract.php';
require_once 'Core/Db/Table/Row/Abstract.php';
require_once 'Core/Db/Table/Rowset/Abstract.php';

class Nld_Models_Jobs_Ebook_Category_DbTable extends Core_Db_Table_Abstract
{
	public function init()
	{
		$this->_name 					= 'vl_ebook_category';
		$this->_primary 			= 'id';
		$this->_rowClass 			= 'Nld_Models_Jobs_Ebook_Category_Row';
		$this->_rowsetClass 	= 'Core_Db_Table_Rowset_Abstract';
		
		$this->_dependentTables = array(
			'Entry' 		=> Nld_Models::getTableClass('Jobs/Ebook/Entry'),
		);

		$this->_referenceMap 	= array(
			array(
				'columns'           => 'id',
				'refTableClass'     => Nld_Models::getTableClass('Jobs/Ebook/Entry'),
				'refColumns'        => 'category',
			),
    );
	}
	public function getPosition($index = null)
  {
		$list = array('left' => 'Hiển thị bên trái');
    return ($index === null)?$list:@$list[$index];
  }
}